package com.bruce.springbootDemo.web.restFul;

/**
 * @param
 * @author bruce
 * @date 18/11/22 14:55
 * @Description: 描述--返回状态码
 * @return
 */
public enum ResponseStatus {
    ok(200, "请求成功"),
    fail(400, "请求错误");
    private Integer code;
    private String msg;

    ResponseStatus() {
    }

    ResponseStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
